import request from '@/utils/request'

// 查询物资入库详情列表
export function listElecMaterialInDetail(query) {
  return request({
    url: '/elec/elecMaterialInDetail/list',
    method: 'get',
    params: query
  })
}

// 查询物资入库详情详细
export function getElecMaterialInDetail(indetailId) {
  return request({
    url: '/elec/elecMaterialInDetail/' + indetailId,
    method: 'get'
  })
}

// 新增物资入库详情
export function addElecMaterialInDetail(data) {
  return request({
    url: '/elec/elecMaterialInDetail',
    method: 'post',
    data: data
  })
}

// 修改物资入库详情
export function updateElecMaterialInDetail(data) {
  return request({
    url: '/elec/elecMaterialInDetail',
    method: 'put',
    data: data
  })
}

// 删除物资入库详情
export function delElecMaterialInDetail(indetailId) {
  return request({
    url: '/elec/elecMaterialInDetail/' + indetailId,
    method: 'delete'
  })
}
